package model.repository;

import java.util.List;

import model.bll.TypesBLL;
import model.entity.Types;

public class TypesRES {

	private final TypesBLL typesBLL;
	
	public TypesRES() {
		this.typesBLL = new TypesBLL();
	}
	
	public boolean insert(Types entity) {
		return typesBLL.insertEntity(entity);
	}

	public boolean update(Types entity) {
		return typesBLL.updateEntity(entity);
	}

	public boolean delete(Types entity) {
		return typesBLL.deleteEntity(entity);
	}

	public List<Types> getAll() {
		return typesBLL.getAllEntity();
	}

	public Types findById(long id) {
		return typesBLL.findEntityById(id);
	}

}
